package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_washe_mall", autoSave = true,uploadCk = true,desc = "瓦舍-礼包触发日志")
public class LogWasheRmbMall extends ServerBaseLog{

    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "礼包ID")
    private int mallId;
    @FieldTypeAnnotation(desc = "是否触发，否=购买")
    private boolean trigger;
    @FieldTypeAnnotation(desc = "当前数量")
    private int newCount;


    public LogWasheRmbMall(long userId, int mallId, boolean trigger, int newCount) {
        this.userId = userId;
        this.mallId = mallId;
        this.trigger = trigger;
        this.newCount = newCount;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getMallId() {
        return mallId;
    }

    public void setMallId(int mallId) {
        this.mallId = mallId;
    }

    public boolean isTrigger() {
        return trigger;
    }

    public void setTrigger(boolean trigger) {
        this.trigger = trigger;
    }

    public int getNewCount() {
        return newCount;
    }

    public void setNewCount(int newCount) {
        this.newCount = newCount;
    }

}
